<?php

namespace Common\Model;
use Think\Model;

class UserModel extends Model{

	protected $rules = array(
		array('sex',array('0','1','2'),'性别格式不正确',0,'in',3),
		array('age',array(1,120),'年龄格式不正确',0,'between',3),
		array('email','email','邮箱格式不正确',1,'unique',3),
		array('repassword','password','确认密码不正确',0,'confirm'), // 验证确认密码是否和密码一致
		array('password','require','密码不能为空',0),
		// array('phone','/^1([358]\d|47|70|77)\d{8}$/','手机号格式不正确',0,'regex',3),
	);
}